package com.bharatonjava.hospital.service;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

import com.bharatonjava.hospital.dao.IMiscDao;
import com.bharatonjava.hospital.dto.SearchDto;


public class MiscService implements IMiscService{

	private final Logger log = Logger.getLogger(this.getClass());
	
	private IMiscDao miscDao;
	
	@Autowired
	public void setMiscDao(IMiscDao miscDao) {
		this.miscDao = miscDao;
	}

	@Override
	public List<SearchDto> search(String query) {
		log.info("entering search method in Service");
		return miscDao.search(query);
	}
	
	
}
